Skip to content

Conversation

@SamVerschueren
Copy link
Contributor

Added tests for the type definitions. While I was working on them, I also noticed that some things where missing/wrong in the typings.

* Creates directories for you as needed.
*
* @example
*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed because of a rendering issue. We can remove it though. Eventually it will be fixed (probably). microsoft/TypeScript#15749

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is so weird 🤔

I was wondering why the @example didn't look good, makes sense now

import {expectType} from 'tsd-check';
import writeJsonFile, {sync, Replacer, SortKeys, JSONStringifyable} from '.';

(async () => {
Copy link
Contributor

@DenisCarriere DenisCarriere Aug 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SamVerschueren This must be the most intense Typescript test I've ever seen 😮

Good job! 👍

Copy link
Contributor

@DenisCarriere DenisCarriere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@sindresorhus sindresorhus merged commit 514b04c into master Sep 3, 2018
@sindresorhus sindresorhus deleted the tsd-check branch September 3, 2018 04:44
@sindresorhus
Copy link
Owner

Very thorough. Great work as always, Sam. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants